﻿export default url => {
    const crud = window.$crud(url)

    crud.callapi = (id,data) => window.$axios({
        url:`${url}/call/${id}`,
        method: 'put',
        data:data
      })

    //接口权限设置-Add
    crud.addauthmanage = (data) => window.$axios({
        url: `apiManage/authmanage`,
        method: 'post',
        data:data
    })
    //接口权限设置-获取接口实体
    crud.getauthmanage = (maintainid) => window.$axios({
        url: `apiManage/authmanagebyid/${maintainid}`,
        method: 'get'
    })
    //接口权限设置-修改
    crud.updateauthmanage = (id,data) => window.$axios({
        url:`apiManage/authmanage/${id}`,
        method: 'put',
        data:data
      })

    return {
        ...crud
    }
}